package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author caijy
 * @since 2019-09-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRQ_T")
public class MmrqT extends PO<MmrqT> {

    private static final long serialVersionUID = 1L;


    private String MMRQENT;

    @TableId(value = "MMRQDOCNO", type = IdType.INPUT)
    private String MMRQDOCNO;

    private Integer MMRQSEQ;

    private String MMRQ001;

    private String MMRQ002;
    private String MMRQ003;

    private LocalDate MMRQ004;
    private String MMRQ005;
    private String MMRQ006;

    private String MMRQ007;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRQ008;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRQ009;


    private String MMRQACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRQUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRQGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRQMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRQTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRQDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRQORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRQORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRQENT;
    }

}
